package com.hlddz.venue_reservation.service.impl;

import com.hlddz.venue_reservation.entity.User;
import com.hlddz.venue_reservation.mapper.UserMapper;
import com.hlddz.venue_reservation.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MoShang
 * @since 2024年05月31日
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;
    @Override
    public User userLogin(User user) {
        return userMapper.userLogin(user);
    }

    @Override
    public void userRegister(User user) {
        userMapper.userRegister(user);
    }

    @Override
    public void userUpdateInfo(User user) {
        userMapper.userUpdateInfo(user);
    }

    @Override
    public void userUpdatePassword(User user) {
        userMapper.userUpdatePassword(user);
    }

    @Override
    public User getUserInfo(String username) {
        return userMapper.getUserInfo(username);
    }
}
